package icu.lookyousmileface.apo1;

import org.springframework.aop.AfterReturningAdvice;
import org.springframework.stereotype.Component;

import java.lang.reflect.Method;

/**
 * @author starrysky
 * @title: AfterLog
 * @projectName spring5
 * @description: TODO
 * @date 2021/2/300:14
 */
@Component
public class AfterLog implements AfterReturningAdvice {
    @Override
    public void afterReturning(Object o, Method method, Object[] objects, Object o1) throws Throwable {
        System.out.println("执行了"+method.getName()+"的,返回值："+o);
    }
}
